<!DOCTYPE html>
<html>
<head>
    <title>{$article.post_seo_title}</title>
    <meta name="keywords" content="{$article.post_keywords|default=''}"/>
    <meta name="description" content="{$article.post_seo_excerpt|default=''}">
    <include file="public@head"/>
    <link href="__TMPL__/public/assets/css/slippry/slippry.css" rel="stylesheet">
    <link href="__TMPL__/public/assets/css/pgwslider.min.css" rel="stylesheet">
    <style>
        .caption-wraper {
            position: absolute;
            left: 50%;
            bottom: 2em;
        }

        .caption-wraper .caption {
            position: relative;
            left: -50%;
            background-color: rgba(0, 0, 0, 0.54);
            padding: 0.4em 1em;
            color: #fff;
            -webkit-border-radius: 1.2em;
            -moz-border-radius: 1.2em;
            -ms-border-radius: 1.2em;
            -o-border-radius: 1.2em;
            border-radius: 1.2em;
        }

        .tc-gridbox {
            margin: 0;
        }

        @media (max-width: 767px) {
            .caption-wraper {
                left: 0;
                bottom: 0.4em;
            }

            .caption-wraper .caption {
                left: 0;
                padding: 0.2em 0.4em;
                font-size: 0.92em;
                -webkit-border-radius: 0;
                -moz-border-radius: 0;
                -ms-border-radius: 0;
                -o-border-radius: 0;
                border-radius: 0;
            }
        }

        #article_content img {
            width: 100%;
        }

    </style>
    <hook name="before_head_end"/>
</head>
<body class="body-white" style="position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top:0;
    background: #eaeaea;
">
<include file="public@nav"/>

<div>
    <ul id="home-slider" class="list-unstyled">
        <slides id="$category['list_order']">
            <li>
                <a>
                    <div class="slide-img"  style="width: 100%;background:url('{:cmf_get_image_url($vo.image)}') top;background-size:100% auto;">

                    </div>
                </a>
            </li>
        </slides>
    </ul>
</div>

<div class="container tc-main" style="border-radius: 10px;background: #ffffff;padding: 20px 0;">
    <div class="row">
        <div class="col-md-12">
            <div class="tc-box article-box">
                <h2 style="text-align: center;color:#20296F;">{$article.post_title}</h2>
                <hr>
                <div class="article-infobox" style="width: 1000px;height:550px;margin: 50px auto">
                    <ul class="pgwSlider">
                        <foreach name="$article.more.photos" item="vo">
                            <li>
                                <img src="{:cmf_get_image_url($vo.url)}" style="height: 100%">
                                <span class="art-name">
                                {$vo.name}
                            </span>
                            </li>
                        </foreach>
                    </ul>
                </div>
                <php>
                    $before_content_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'user_id'=>$article['user_id'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'object'=>$article
                    ];
                </php>
                <hook name="before_content" param="before_content_hook_param"/>

                <div id="article_content" style="width: 90%;margin: 50px auto;font-size: 20px">
                    {$article.post_content}
                </div>

                <php>
                    $after_content_hook_param=[
                    'object_id'=>$article['id'],
                    'table_name'=>'portal_post',
                    'object_title'=>$article['post_title'],
                    'user_id'=>$article['user_id'],
                    'url'=>cmf_url_encode('portal/Article/index',array('id'=>$article['id'],'cid'=>$category['id'])),
                    'object'=>$article
                    ];
                </php>
                <hook name="after_content" param="after_content_hook_param"/>
            </div>
        </div>
    </div>
</div>
<div style="height: 100px;width: 100%"></div>

<include file="public@footer"/>
<style>
    .footer {
        display: block;
        animation-name: footerInAn;
        position: relative;
    }

    .footer-link {
        height: 40px;
    }

    .footer-link .code-img {
        bottom: 0;
    }

    #topNav {
        animation-name: topNavInAn;
    }

    .article-infobox {
        height: 500px;
        background: rgb(234, 234, 234);
        box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 45px, rgba(0, 0, 0, 0.22) 0px 10px 18px;
    }

    .art-name, .ps-current > span {
        background: #428bca !important;
    }

</style>
<!-- /container -->
<include file="public@scripts"/>
<script src="__TMPL__/public/assets/js/slippry.min.js"></script>
<script src="__TMPL__/public/assets/js/pgwslider.min.js"></script>
<script>
    $(function () {
        var trans = ['fade', 'horizontal', 'vertical']
        var tran = trans[Math.floor(Math.random() * 2 + 1)]
        $(".list-unstyled").slippry({
            transition: tran,
            useCSS: true,
            captions: false,
            speed: 1000,
            pause: 2000,
            auto: true,
            preload: 'visible',
            controls: true
        });
        $(".list-unstyled").show();
        $("#footer").css("animation-name", "footerInAn")

        $('.pgwSlider').pgwSlider();
    });
</script>
<hook name="before_body_end"/>
</body>
</html>
